package com.dinghui.pay.service;

import com.dinghui.pay.pojo.TbUser;
import com.dinghui.pay.pojo.param.LoginParam;

/**
 * @version 1.0
 * @author: trt
 * @description:
 * @create: 2021-05-30 10:34
 */
public interface UserService {

    int getCount(TbUser user);

    void save(TbUser user);

    TbUser getOne(TbUser user);

    /**
     * 用户登录
     * @param param    登录表单
     * @return        返回用户ID
     */
    long login(LoginParam param) throws Exception;
}
